473,414 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

hover image in button

omerbutt
638 512MB
hi i am trying to make a hover class that would replace the background-image of the button .it is working in Mozilla but not working in IE any suggesstions ,here is the code
Expand|Select|Wrap|Line Numbers
  1. <style type='text/css'>
  2. #input_button{ 
  3.     background-image:url(../images/img_049.gif);
  4.     background-position:center;
  5.     background-repeat:no-repeat;
  6.     border:0px;
  7.     width:40px;
  8.     height:20px; 
  9.     cursor:pointer; 
  10.     background-color:#151515;
  11. }
  12. #input_button:hover{
  13.     background-image:url(../images/img_048.gif);
  14.     width:40px;
  15.     height:20px;
  16. }
  17. </style>
  18. <body>
  19. <tr>
  20.        <td></td>
  21.            <td align="left" valign="middle"><input type="submit" name="Submit" id="input_button" class="input_button text_9_tahoma_white" style="text-align:left;" value="" align="left" />
  22. <input type="reset" name="Reset" id="input_button" class="input_button text_9_tahoma_white" style="text-align:left;" value="" align="left" />
  23.       </td>
  24. </tr>
  25. </body>
  26.  
Mar 11 '09 #1
3 3624
Dormilich
8,658 Expert Mod 8TB
the hover pseudo-class works in IE only on anchor elements.
Mar 11 '09 #2
omerbutt
638 512MB
:( i almost had a doubt well have to change to an image
thanks anyway
regards,
Omer Aslam
Mar 11 '09 #3
Dormilich
8,658 Expert Mod 8TB
you can use javascript to overcome this problem (look for the suckerfish dropdown, the script is explained there)
Mar 11 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Susan Addams | last post by:
The website I'm working on is using a graphic image for the left navigation scheme. Say I've got a button called "home" and one called "home_rollover" where it's a lighter shade Is there a...
12
by: Sander Tekelenburg | last post by:
Trying to make some images disappear on hover (works), and others appear on hover (works not). In tested browsers, this gives the expected result: IMG.disappear {visibility: visible}...
8
by: JLahm | last post by:
I have defined a class for my images called .image that specifies the default border color, width and style. I'd like to be able to have the pseudo elements link, visited and active have one color...
2
by: Elisa | last post by:
I have two images, each with defined CSS hover states. I would like a mouseover on one image to trigger the hover state of the other image. Is this possible using javascript? If so, how? Any...
4
by: Don | last post by:
I have a client page that employs hover buttons. They work just fine in IE. But, when using Netscape, they intermittently won't display. When they don't display, all that shows is a gray box the...
7
by: fredo | last post by:
I've studied Eric Meyer's pure css popups, version two: http://meyerweb.com/eric/css/edge/popups/demo2.html which pops up an image when I roll over a text link. Now I want to pop up a large...
7
by: Cate Archer | last post by:
I want to have a border around an image that changes color when the mouse hovers over it. The following code works perfectly in FireFox but not in Internet Exploiter. The text link changes color...
8
by: Haines Brown | last post by:
I want a hot text string to display an image only when hovered. In the body: .... <a id="link-a" href="#nogo"> <img id="photo" src="..." />hot text </a> ....
4
by: Sigilaea | last post by:
My previous post got squashed because m post is too long. Sorry for that: I have an AJAX page with a CSS menu at the top. My problem is the hover functionality stops working after someone clicks...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.